import {DomSanitizer} from '@angular/platform-browser';
import {PipeTransform, Pipe, SecurityContext} from '@angular/core';


@Pipe({ name: 'formDesignSanitizeUrl'})
export class FormDesignSanitizeUrlPipe implements PipeTransform  {
  constructor(private sanitized: DomSanitizer) {}
  transform(value) {
    return this.sanitized.sanitize(SecurityContext.HTML, value);
  }
}